
/**
 * @author Khurana
 *
 */
public class FoEachLoopDemo {

	public static void main(String[] args) 
	{
		int[] i= new int[10];
		for (int j=0; j<10; j++)
		{
			i[j]=j+1;
		}
		
		for(int temp: i)
		{
			System.out.println("value of i using foreach loop: " + temp);
		}
		
		
	}

}
